package com.gnerv.pabu.basic.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gnerv.pabu.basic.core.dto.CatalogDTO;
import com.gnerv.pabu.basic.core.dto.CatalogSearchDTO;
import com.gnerv.pabu.basic.core.dto.CatalogTreeDTO;
import com.gnerv.pabu.basic.core.entity.Catalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 基础平台-栏目表 mapper 接口
 *
 * @author zhang
 * @date 2019/12/2
 **/
public interface CatalogMapper extends BaseMapper<Catalog> {

    CatalogDTO selectCatalog(@Param(value = "catalogId") String catalogId);

    Page<CatalogDTO> listCatalog(@Param(value = "page") Page<CatalogDTO> page, @Param(value = "search") CatalogSearchDTO search);

    List<CatalogTreeDTO> listCatalogTree(@Param(value = "parentId") String parentId);
}
